package com.qiyuexinxi.chat.mapper;

import com.qiyuexinxi.chat.domain.Dynamic;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DynamicMapper {
    int deleteByPrimaryKey(Integer dynamicId);

    int insert(Dynamic record);

    int insertSelective(Dynamic record);

    Dynamic selectByPrimaryKey(Integer dynamicId);

    int updateByPrimaryKeySelective(Dynamic record);

    int updateByPrimaryKey(Dynamic record);

    List<Dynamic> selectDynamicByUserId(@Param("userId") Integer userId);

    List<Dynamic> selectDynamicListByUserIds(List<Integer> userIds);

}